package pattern.homework;

import org.apache.commons.beanutils.BeanUtils;

/**
 * @author: jxj
 * @create: 2019-05-01
 **/
public class UsePatternPrototype {
    private static PlayRecord getRecord(UsrPlayRecord record) {
        PlayRecord returnRecord = new PlayRecord();
        try {
        BeanUtils.copyProperties(returnRecord, record);
        } catch (Exception e){
        throw new RuntimeException("克隆对象出错！");
        }
        return returnRecord;
    }
}
